package hai.com.android_test.simple;

import java.io.IOException;

import hai.com.android_test.utils.Logger;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

/**
 * Created by 黄海 on 12/25/2016.
 */

public  class SimpleCallBack implements Callback {
    @Override
    public void onFailure(Call call, IOException e) {
        Logger.e(e.getLocalizedMessage());
    }

    @Override
    public void onResponse(Call call, Response response) throws IOException {
        Logger.e(call.toString(), response.toString());
    }
}
